<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Article;

class ImageController extends Controller
{
    public function index()
    {
        return Article::all();
    }

    public function search($imageName)
    {
        return file_get_contents(base_path()."/resources/images/".$imageName);
        // return $article;
    }

}